Implement get decryption key for event based triggers - #87
Merged
Conversation
Note: this is still an intermediate in regards to fixing #84. Also, the 'timestamp' in responses can not be set (see FIXME comment).
konradkonrad
force-pushed
the
feat/decryptionkey_etd
branch
from
January 20, 2026 12:02
eb67cd5 to
636b0f5
Compare
ylembachar
reviewed
Jan 20, 2026
| } | ||
|
|
||
| decKeyResponse, httpErr := uc.GetDecryptionKey(ctx, identity) | ||
| decKeyResponse, httpErr := uc.GetEventDecryptionKey(ctx, identity) |
Collaborator
There was a problem hiding this comment.
This would fail the corresponding decrypt_commitment test as the test doesn't stub the methods to get eon and blockNumber. We should ideally also add corresponding unit tests for the new endpoint, but we can do it in a subsequent PR.
ylembachar
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR also adds code to decrypt commitments event based decryption triggers.
This is preliminary version, to allow early demo implementations -- there are still a number of required improvements from #84 in order to fully release/deploy on public mainnets.
Fixes #86